package cn.com.yixing.loginregistration.Adapter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@SpringBootConfiguration
public class MySpringConfig  extends WebMvcConfigurerAdapter {
     @Autowired
    private InterceptorConfig interceptorConfig;
     public void addInterceptors(InterceptorRegistry registry){
         registry.addInterceptor(interceptorConfig).addPathPatterns("/**");
     }


}
